class Pet {
    private String type;
    private int age;
    private boolean vaccinum;

    public void setType(String type) {
        this.type = type;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setVaccinum(boolean health) {
        this.vaccinum = health;
    }

    public String getType() {
        return type;
    }

    public int getAge() {
        return age;
    }

    public boolean getHealth() {
        return vaccinum;
    }

    public static void main(String[] args) {
        Pet pet1 = new Pet();
        pet1.setType("猫");
        pet1.setAge(2);
        pet1.setVaccinum(true);

        Pet pet2 = new Pet();
        pet2.setType("狗");
        pet2.setAge(3);
        pet2.setVaccinum(false);

        System.out.println("宠物 1 信息：");
        System.out.println("类型：" + pet1.getType());
        System.out.println("年龄：" + pet1.getAge());
        System.out.println("是否接种疫苗：" + (pet1.getHealth() ? "是" : "否"));

        System.out.println("\n宠物 2 信息：");
        System.out.println("类型：" + pet2.getType());
        System.out.println("年龄：" + pet2.getAge());
        System.out.println("是否接种疫苗：" + (pet2.getHealth() ? "是" : "否"));
    }
}    